package com.core.pf;

import org.hibernate.cfg.Configuration;

/**
 * 
 * @author jorge
 *
 */
public class Context {

   // Privado
    private Configuration configuration;
    
   /**
    * Constructor
    */
    public Context() {}
    
   /**
    * InitialContext
    * @return
    */
    public static Configuration initialContext() {
        Context ctx = new Context();
        if(ctx.configuration == null) {
            ctx.configuration = new Configuration();
        }
        return ctx.getConfiguration();
    }
    
    // Getter
    private Configuration getConfiguration() {
        return configuration;
    }
    
}
